<%@ include file="/WEB-INF/jsp/include/taglibs.jspf" %>
<%-- 
    Document   : kemaskini_info_petugas
    Created on : Sep 12, 2013, 10:25:35 AM
    Author     : fikri
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<script type="text/javascript">

    function edit(id) {
        frm = document.forms.frm1;
        frm.action = frm.action + '?showEditAddPetugasForm&id=' + id;
        frm.submit();
    }
    
    function del(id) {
        if (confirm('Adakah anda pasti?')) {
            frm = document.forms.frm1;
            frm.action = frm.action + '?padamPetugas&id=' + id;
            frm.submit();
        }
    }

</script>

<s:messages/>
<s:errors/>

<s:form beanclass="th.stripes.action.AdminAction" name="frm1">
    <div id="content">
        <div id="logo">
            <span>
                <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
            </span>
        </div>
        <h3>
            Carian Info Petugas
        </h3>
        <p>
            <display:table style="width:100%" class="tablecloth" name="${actionBean.senaraiPetugas}" 
                           pagesize="10" cellpadding="0" cellspacing="0" id="row" 
                           requestURI="${pageContext.request.contextPath}/admin">
                <display:column title="Bil." >
                    ${row_rowNum} 
                </display:column>
                <display:column title ="Nama">
                    ${row.nama}
                </display:column>
                <display:column title="No Telefon">                   
                    ${row.noTel}
                </display:column>              
                <display:column title="Kemaskini">
                <center>
                    <img src="${pageContext.request.contextPath}/images/edit.gif" 
                         onclick="edit('${row.idInfoPetugas}');"/>
                    <img src="${pageContext.request.contextPath}/images/delete.gif" 
                         onclick="del('${row.idInfoPetugas}');"/>
                </center>
                </display:column>              
            </display:table>
        </p>
        <p>
            <label>&nbsp;</label>
            <s:submit name="showEditAddPetugasForm" value="Tambah Baru" class="button green"/>
        </p>
    </div>
</s:form>